import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import setupPlugins from "@/plugins";

// 如果完整使用
import VxeUI from "vxe-pc-ui";
import "vxe-pc-ui/lib/style.css";
// 如果只使用表格
// import { VxeUI } from 'vxe-table'
import VxeUIPluginRenderElement from "@vxe-ui/plugin-render-element";
import "@vxe-ui/plugin-render-element/dist/style.css";
// // ...

import VxeTable from "vxe-table";
import "vxe-table/lib/style.css";

// 本地SVG图标
import "virtual:svg-icons-register";

// 样式
import "element-plus/theme-chalk/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css";
import "animate.css";

const app = createApp(App);
VxeUI.use(VxeUIPluginRenderElement);

app.use(setupPlugins);
app.use(ElementPlus).use(VxeUI).use(VxeTable);
app.mount("#app");
